#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main()
{
	char arr1[] = "abcdef";
	//char arr2[20] = "xxxxxxxxxxxx";
	//strncpy(arr2, arr1, 3);
	//printf("%s\n", arr2);
	char arr2[20] = "xx";
	strncpy(arr2, arr1, 3);
	printf("%s\n", arr2);
	return 0;
}